function deploy_rust {
  cp ../$1 coin_deploy/$1
}

rm -r native_rust/*
mkdir -p coin_deploy/rust/py/out
mkdir -p coin_deploy/rust/py/feed-handler/target/release
mkdir -p coin_deploy/rust/py/topic-record/target/release

set -x

deploy_rust rust/py/out/feed_handler.so
deploy_rust rust/py/feed-handler/target/release/libfeed_handler.so
deploy_rust rust/py/out/topic_record.so
deploy_rust rust/py/topic-record/target/release/libtopic_record.so

